<template>
  <div class="goods">
    <goods-list-item v-for="(i, idx) in goodsList" :key="idx" :goods-item="i" />
  </div>
</template>

<script>
import GoodsListItem from './GoodsListItem.vue'

export default {
  props: {
    goodsList: {
      type: Array,
      default () {
        return []
      }
    }
  },
  data () {
    return {}
  },
  components: {
    GoodsListItem
  }
}
</script>

<style lang="less" scoped>
.goods {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;

  // 距离均等分一点
  padding: 2px;
}
</style>
